﻿

var read_callback;
var math_callback;
var close_callback;

function fpReadFeature(data, callback) {
    alert(1);
    read_callback = callback;
    window.external.Finger_read(data, "fpReadFeature_callback");

}

function fpReadFeature_callback(json) {
    read_callback(json);
}

function fpMatch(data, callback) {

    math_callback = callback;
    window.external.Finger_math(data, "fpMatch_callback");

}

function fpMatch_callback(json) {
    math_callback(json);
}


function fpClose(data, callback) {

    close_callback = callback;
    window.external.Finger_close(data, "fpClose_callback");
}

function fpClose_callback(json) {
    close_callback(json);
}